package cn.aitrox.ry.service.config.api;

import cn.aitrox.ry.bean.CommonPageInfo;
import cn.aitrox.ry.bean.RespResult;
import cn.aitrox.ry.service.config.dto.LesionDto;
import cn.aitrox.ry.service.config.dto.in.LesionCreateInDto;
import cn.aitrox.ry.service.config.dto.in.LesionEditInDto;
import cn.aitrox.ry.service.config.dto.in.LesionGroupSearchInDto;
import cn.aitrox.ry.service.config.dto.in.LesionSearchInDto;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface LesionApi {

    @PostMapping(value = "/config/lesion/group/search")
    CommonPageInfo<LesionDto> lesionGroupSearch(@RequestBody LesionGroupSearchInDto input);

    @PostMapping(value = "/config/lesion/search")
    CommonPageInfo<LesionDto> lesionSearch(@RequestBody LesionSearchInDto input);

    @PostMapping(value = "/config/lesion")
    RespResult create(@Validated @RequestBody LesionCreateInDto input);

    @PutMapping(value = "/config/lesion")
    RespResult edit(@Validated @RequestBody LesionEditInDto input);

    @GetMapping(value = "/config/lesion/maxCode")
    String maxCode();
}
